<?php

/**
 * 命令行Controller
 * @author ls
 * @email lmt@lostphp.com
 * @date 2017-03-28 09:47:37
 * @desc 命令行Controller
 */
class CControllerModel extends Yaf_Controller_Abstract {
	public function init() {
		//判断请求非命令行请求则跳转到首页
		if (REQUEST_METHOD != 'CLI')
		{
			$this->redirect('/');
		}
	}
}
